package com.mega32k.mevila.tab;

import com.mega32k.mevila.item.tool.MevilaHoeItem;
import net.minecraft.client.resources.I18n;
import net.minecraft.item.ItemGroup;
import net.minecraft.item.ItemStack;
import net.minecraft.util.text.ITextComponent;
import net.minecraft.util.text.StringTextComponent;
import net.minecraft.util.text.TranslationTextComponent;
import net.minecraftforge.api.distmarker.Dist;
import net.minecraftforge.api.distmarker.OnlyIn;
import net.minecraftforge.registries.ObjectHolder;

public class MevilaToolTab extends ItemGroup {
    @ObjectHolder("mevila:mevila_hoe")
    public static final MevilaHoeItem mevilaStackHoeItem = null;

    public MevilaToolTab() {
        super("MevilaToolItemGroup");
    }

    @Override
    public ItemStack createIcon() {
        return new ItemStack(mevilaStackHoeItem);
    }

    @OnlyIn(Dist.CLIENT)
    public ITextComponent getGroupName() {
        return new StringTextComponent(I18n.format("tab.mevila.mevilaTool"));
    }

    public static final ItemGroup mevilaToolTab = (ItemGroup) new MevilaToolTab();
}
